package com.haikesi.api.device.domain.po;

import com.haikesi.api.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "device")
public class DevicePO extends BaseEntity {

    /**
     * 设备类型码
     */
    @Column(name = "product_code")
    private String productCode;

    /**
     * 设备所属账号
     */
    @Column(name = "device_subscriber_number")
    private String deviceSubscriberNumber;

    /**
     * 订阅账号ID
     */
    @Column(name = "device_subscriber_id")
    private String deviceSubscriberId;

    /**
     * 设备mac地址
     */
    @Column(name = "device_mac")
    private String deviceMac;

    /**
     * 设备序列号
     */
    @Column(name = "serial_num")
    private String serialNum;

    /**
     * 设备名称
     */
    @Column(name = "device_name")
    private String deviceName;

    /**
     * 设备别名
     */
    @Column(name = "device_alias")
    private String deviceAlias;

    /**
     * 设备位置ID
     */
    @Column(name = "position_id")
    private String positionId;

    /**
     * 设备所属组织机构ID
     */
    @Column(name = "organization_id")
    private String organizationId;

    @Column(name = "device_longitude")
    private String deviceLongitude;

    @Column(name = "device_latitude")
    private String deviceLatitude;

}